<?php

namespace app\admin\controller;

use app\common\controller\Backend;

use app\common\controller\PCBase;
use app\admin\logic\DashboardLogic;
use app\common\controller\DBase;//测试专用

class Dashboard extends PCBase
{
    public function initialize(): void
    {
        parent::initialize();
    }

    public function index()
    {
        $data = [
            'remark' => get_route_remark()
        ];

        return json(DefaultResponse(200, true, '获取成功', $data));
    }

    /**
     * index
     * @throws Throwable
     */
    public function dashboard()
    {
        $params     = $this->request->post();
        $DashboardLogic = new DashboardLogic();
        return $DashboardLogic->index($params);
    }
}